package com.zzxy.spring4.controller;

import com.zzxy.spring4.service.ITeacherService;
import com.zzxy.spring4.service.impl.StudentServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller

public class TeacherController {
    @Autowired
    private ITeacherService teacherService;

//    public ITeacherService getTeacherService() {
//        return teacherService;
//    }
//
//    public void setTeacherService(ITeacherService teacherService) {
//        this.teacherService = teacherService;
//    }

    public  void register(){
//service
      teacherService.registerTeacher();
    }

    public void setTeacherService(StudentServiceImpl teacherService) {
    }
}
